package com.whz.inject;

import java.util.Collections;
import java.util.List;
import java.util.Objects;

/**
 * @Author: sinosoft
 * @Description: 拼写检查器
 * @Date: Create in 12:14 2021/4/30
 * @Modified By:
 */
public class SpellChecker {
    private final Lexicon dictionary;

    public SpellChecker(Lexicon dictionary) {
        this.dictionary = Objects.requireNonNull(dictionary);
    }

    public boolean isValid(String word) {
        return false;
    }
    public List<String> suggestions(String typo) {
        return Collections.EMPTY_LIST;
    }
}
